import { ref} from 'vue'
import { defineStore } from 'pinia'
import {getCategoryListApi} from  '@/api/layout'
export const useCategoryStore = defineStore('category', () => {

  //导航列表的逻辑
const CategoryList = ref([])
const getCategory = async () => {
  const res = await getCategoryListApi()
  CategoryList.value = res.result
  console.log(res);
}

  return ({
        getCategory,CategoryList
      })
})
